package com.peng.vod.utils;

import lombok.Setter;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "aliyun.vod.file")
@Setter
public class ConstantVodUtils implements InitializingBean {

    private String accessKeyId;
    private String accessKeySecret;

    public static String ACCESSKEY_ID;
    public static String ACCESSKEY_SECRET;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESSKEY_ID=accessKeyId;
        ACCESSKEY_SECRET=accessKeySecret;
    }
}
